﻿
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;
using WalkingTec.Mvvm.Core;
using WalkingTec.Mvvm.Core.Extensions;
using TyMES.Model.BaseInformation;
using TyMES.Model;

namespace TyMES.ViewModel.BaseInformation.LMESBadCodeTemplateVMs
{
    public partial class LMESBadCodeTemplateTemplateVM : BaseTemplateVM
    {
        
        [Display(Name = "_Model._LMESBadCodeTemplate._AddTime")]
        public ExcelPropety AddTime_Excel = ExcelPropety.CreateProperty<LMESBadCodeTemplate>(x => x.AddTime, true);
        [Display(Name = "_Model._LMESBadCodeTemplate._BadCode")]
        public ExcelPropety BadCode_Excel = ExcelPropety.CreateProperty<LMESBadCodeTemplate>(x => x.BadCode);
        [Display(Name = "_Model._LMESBadCodeTemplate._BadName")]
        public ExcelPropety BadName_Excel = ExcelPropety.CreateProperty<LMESBadCodeTemplate>(x => x.BadName);
        [Display(Name = "_Model._LMESBadCodeTemplate._BadTypeCode")]
        public ExcelPropety BadTypeCode_Excel = ExcelPropety.CreateProperty<LMESBadCodeTemplate>(x => x.BadTypeCode);
        [Display(Name = "_Model._LMESBadCodeTemplate._BadTypeName")]
        public ExcelPropety BadTypeName_Excel = ExcelPropety.CreateProperty<LMESBadCodeTemplate>(x => x.BadTypeName);
        [Display(Name = "_Model._LMESBadCodeTemplate._DataStatus")]
        public ExcelPropety DataStatus_Excel = ExcelPropety.CreateProperty<LMESBadCodeTemplate>(x => x.DataStatus);
        [Display(Name = "_Model._LMESBadCodeTemplate._EditTime")]
        public ExcelPropety EditTime_Excel = ExcelPropety.CreateProperty<LMESBadCodeTemplate>(x => x.EditTime, true);
        [Display(Name = "_Model._LMESBadCodeTemplate._EnableStatus")]
        public ExcelPropety EnableStatus_Excel = ExcelPropety.CreateProperty<LMESBadCodeTemplate>(x => x.EnableStatus);
        [Display(Name = "_Model._LMESBadCodeTemplate._FactoryCode")]
        public ExcelPropety FactoryCode_Excel = ExcelPropety.CreateProperty<LMESBadCodeTemplate>(x => x.FactoryCode);
        [Display(Name = "_Model._LMESBadCodeTemplate._Field1")]
        public ExcelPropety Field1_Excel = ExcelPropety.CreateProperty<LMESBadCodeTemplate>(x => x.Field1);
        [Display(Name = "_Model._LMESBadCodeTemplate._Field2")]
        public ExcelPropety Field2_Excel = ExcelPropety.CreateProperty<LMESBadCodeTemplate>(x => x.Field2);
        [Display(Name = "_Model._LMESBadCodeTemplate._Field3")]
        public ExcelPropety Field3_Excel = ExcelPropety.CreateProperty<LMESBadCodeTemplate>(x => x.Field3);
        [Display(Name = "_Model._LMESBadCodeTemplate._Field4")]
        public ExcelPropety Field4_Excel = ExcelPropety.CreateProperty<LMESBadCodeTemplate>(x => x.Field4);
        [Display(Name = "_Model._LMESBadCodeTemplate._Field5")]
        public ExcelPropety Field5_Excel = ExcelPropety.CreateProperty<LMESBadCodeTemplate>(x => x.Field5);
        [Display(Name = "_Model._LMESBadCodeTemplate._OperationCode")]
        public ExcelPropety OperationCode_Excel = ExcelPropety.CreateProperty<LMESBadCodeTemplate>(x => x.OperationCode);
        [Display(Name = "_Model._LMESBadCodeTemplate._LMESBadCode")]
        public ExcelPropety LMESBadCode_Excel = ExcelPropety.CreateProperty<LMESBadCodeTemplate>(x => x.LMESBadCode);
        [Display(Name = "_Model._LMESBadCodeTemplate._LMESBadDescription")]
        public ExcelPropety LMESBadDescription_Excel = ExcelPropety.CreateProperty<LMESBadCodeTemplate>(x => x.LMESBadDescription);
        [Display(Name = "_Model._LMESBadCodeTemplate._IsValid")]
        public ExcelPropety IsValid_Excel = ExcelPropety.CreateProperty<LMESBadCodeTemplate>(x => x.IsValid);

	    protected override void InitVM()
        {
            
        }

    }

    public class LMESBadCodeTemplateImportVM : BaseImportVM<LMESBadCodeTemplateTemplateVM, LMESBadCodeTemplate>
    {
            //import

    }

}